package o;

import java.net.Proxy.Type;

public final class fwa {
    public static String ॱ(fus o_fus, Type type) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(o_fus.ˋ());
        stringBuilder.append(' ');
        if (ˋ(o_fus, type)) {
            stringBuilder.append(o_fus.ˏ());
        } else {
            stringBuilder.append(ॱ(o_fus.ˏ()));
        }
        stringBuilder.append(" HTTP/1.1");
        return stringBuilder.toString();
    }

    private static boolean ˋ(fus o_fus, Type type) {
        return !o_fus.ॱॱ() && type == Type.HTTP;
    }

    public static String ॱ(fur o_fur) {
        String ʽ = o_fur.ʽ();
        String ʼ = o_fur.ʼ();
        return ʼ != null ? ʽ + '?' + ʼ : ʽ;
    }
}
